All Questions
18 questions
0votes
1answer
92views
Best method to further execute the DRY principle and/or raise performance in my script? (client login/signup system)
Just for practice purposes, I written a basic client sided login/signup system that allows you to make an account, and then log into the account from my webpage. What it does is append to an object ...
2votes
1answer
52views
Building a JavaScript GroupPicker class that is tightly coupled with HTML structure. Is this an anti-pattern?
I'm building a GroupPicker class that essentially manages an interface that allows the user to move items between two columns "assigned" vs "unassigned". The items ...
3votes
0answers
202views
Dynamic Bootstrap 4 modal using JavaScript OOP
I have created dynamic Bootstrap 4 modal using JavaScript OOP. Please verify and give your reviews how I can improve the code. I have passed four parameters to create a dynamic modal: ...
2votes
1answer
132views
Tile and grid abstraction
This question is a small subset of the problem I am trying to solve. I am trying to learn to break problems into better abstractions. The original problem I am trying to solve is: Write a JS ...
2votes
2answers
200views
List component using plain JS
beginner web dev here. I created a custom list component (with edit feature) in plain JS/HTML. I have few questions on which I would like to get an answer (besides the normal feedback that you folks ...
2votes
0answers
99views
HTML canvas element Encapsulation
I am preparing to write a widget for the browser that is both visual and interactive. I am a newbie to Javascript/Ecmascript and prototyping. I want to encapsulate the canvas element, abstract the ...
3votes
2answers
228views
Form validation library
Background: After reading this thought provoking book I decided to write a small library as an exercise. ...
4votes
2answers
71views
Window-size-dependent content toggler for an HTML form
I had to build a responsive component which allows the user to display specific content in a page. I called it the contentToggler. Here is my component in action ...
3votes
0answers
53views
Search Class with Static Methods
Most of my programming experience is in PHP, and I have always been a bit wary of JavaScript. I have a JavaScript class to manage executing, caching and displaying search results. ...
3votes
3answers
816views
Constructor function, prototype and making a modal
I'm playing around with prototypes, constructor functions and javascript - I'm not really a Javascript developer but am interested in this. Am I on the right track with this code? I'm looking for a ...
2votes
2answers
155views
Change the navigation ul li based on the clicked country
I'm trying to create a very simple jQuery plugin in the object-oriented way. Now, I'm not sure whether the code I produced is correct and efficient OO programming. The plugin's aim is to change the ...
5votes
1answer
259views
Transforming jQuery form code into clean code
The following JS code handles when the form is submitted and some little extra stuff. I'd like to have it reviewed on the following aspects: Readability Efficiency Usability OOP It works exactly as ...
8votes
1answer
890views
Game of Life - OOP and Best Practices
I always have a problem figuring out what good JavaScript coding practices and conventions are and if I'm following them, especially concerning OOP. So I implemented The Game of Life and wanted to ask ...
6votes
1answer
876views
Interactive slider
Task: Create an interactive slider that allows the user to view a given image gallery. Slider controls: See previous slide See next slide Quick navigation through the images / Paging - ...
11votes
3answers
287views
Updating Grid on Webpage (new version)
Previous version: Updating Grid on Webpage Task: Draw a grid with a given number of rows and columns. Each cell can be any color. The same grid should also be updated at a predetermined time ...